<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="./Public/Adminstyle/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="./Public/Adminstyle/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="./Public/Adminstyle/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="./Public/Adminstyle/Flat/img/favicon.ico">
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<div class="alert alert-success">添加分类</div>
		<form action="" method="post" enctype="multipart/form-data">
		<div class="form-group">
			<label for="exampleInputEmail1">品牌名称</label>
			<input id="exampleInputEmail1" class="form-control" type="text"  name="bname" value="{{$olddata['bname']}}">
		</div>
		<script type="text/javascript" src="./Public/jquery-1.7.2.min.js">
				
			</script>
			<script type="text/javascript">
				$(function(){
					$(".closeImg").click(function(){
						$('.img_div').remove();
						$(".file_div").html('<input id="exampleInputEmail1" type="file" required="" name="thumb" >')
					})
				})
			</script>
		<div class="form-group">
			<label for="exampleInputEmail1">logo</label>
			{{if value="$olddata['thumb']"}}
				<div class="img_div">
					<img src="{{$olddata['thumb']}}"/>
					<span class="closeImg">X关闭</span>
					<input id="exampleInputEmail1" type="hidden" name="thumb" value="{{$olddata['thumb']}}">
				</div>
					
				{{else}}
					<input id="exampleInputEmail1" type="file" required="" name="thumb" >
				{{endif}}
				<div class="file_div">
					
				</div>
				
			
			
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">分类排序</label>
			<input id="exampleInputEmail1" class="form-control" type="text"   name="scort" value="{{$olddata['scort']}}">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">描述</label>
			<input id="exampleInputEmail1" class="form-control" type="text"  name="describe" value="{{$olddata['describe']}}">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">关键字</label>
			<input id="exampleInputEmail1" class="form-control" type="text"  name="keywords" value="{{$olddata['keywords']}}">
		</div>
		<div class="form-group">
			<label for="exampleInputEmail1">是否热门</label>
			<input  type="radio"  name="hot" value="0" {{if value="$olddata['hot']==0"}}checked=""{{endif}}>不热门
			<input type="radio"  name="hot" value="1" {{if value="$olddata['hot']==1"}}checked=""{{endif}}>热门
		</div>
			<input type="hidden" name="bid" id="bid" value="{{$olddata["bid"]}}" />
		<button class="btn btn-primary btn-block" type="submit"> 确定 </button>
		</form>
	</body>
</html>
